<!DOCTYPE html>
<html>

<head>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>部门岗位</title>
  <meta name="keywords" content="">
  <meta name="description" content="">

  <link rel="shortcut icon" href="favicon.ico">
  <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
  <link rel="stylesheet" href="../tree/css/zTreeStyle/zTreeStyle.css" type="text/css">
  <link rel="stylesheet" type="text/css" href="../css/labMgt/modal.css">
 <link href="../css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
 
  <script src="../js/jquery.min.js?v=2.1.4"></script>
  <script src="../js/bootstrap.min.js?v=3.3.6"></script>
  <script type="text/javascript" src="../tree/js/jquery.ztree.core-3.5.js"></script>
  <script src="../js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
  <script src="../js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>

  <!-- 自定义js -->
  <script src="../js/content/department_post.js"></script>
</head>

<body class="gray-bg">
  <div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
      <div class="zTreeDemoBackground left col-sm-2">
        <ul id="treeDemo" class="ztree"></ul>
      </div>

      <div class="col-sm-10">
        <div class="row" style="margin:10px">
          <button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#addForm">添加岗位</button>
          <button class="btn btn-sm btn-primary" type="submit">删除岗位</button>
          <button class="btn btn-sm btn-primary" data-toggle="modal" data-target="#set_post_dialog">设置岗位级别</button>
        </div>
        <div class="col-sm-12">
          <div id="accordion1" class="ibox float-e-margins">
            <div id="table1" class="ibox-content collapse in" aria-expanded="true">
              <table id="department_post_table" class="footable table table-stripped toggle-arrow-tiny">
                <thead>
                  <tr>
                    <th><input type="checkbox" /></th>
                    <th data-field="field1">岗位名称</th>
                    <th data-field="field2">岗位代码</th>
                    <th data-field="field3">岗位性质</th>
                    <th data-field="field3">岗位级别</th>
                  </tr>
                </thead>
                <tbody></tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <!-- form 表单弹框 新增addForm -->
  <div class="modal fade" id="addForm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
          <h5 class="modal-title" id="myModalLabel">新增用户</h5>
        </div>
        <div class="modal-body">
          <table id="add_post_table" class="footable table table-stripped toggle-arrow-tiny">
            <thead>
              <tr>
                <th><input type="checkbox" /></th>
                <th data-field="field1">岗位名称</th>
                <th data-field="field2">岗位代码</th>
                <th data-field="field3">说明</th>
              </tr>
            </thead>
            <tbody></tbody>
          </table>          
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
          <button type="button" class="btn btn-primary">确定</button>
        </div>
      </div>
    </div>
  </div>


<!-- 设置岗位级别-->
  <div class="modal fade" id="set_post_dialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
          <h5 class="modal-title" id="myModalLabel">设置岗位级别</h5>
        </div>
        <div class="modal-body">
          <form>
            <table class="form-table">
              <tbody>
                <tr>
                  <td class="title">岗位性质：</td>
                  <td><input name="username" type="text"><b>*</b></td>
                </tr>
                <tr>
                  <td class="title">岗位级别：</td>
                  <td><input name="loginName" type="text"><b>* 50-100</b></td>
                </tr>
              </tbody>
            </table>
          </form>          
        </div>
       <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
          <button type="button" class="btn btn-primary">确定</button>
        </div>
      </div>
    </div>
  </div>

</body>

</html>